
package com.fricano.java42.instructional.example.swing;

import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;

import javax.swing.border.LineBorder;

public class J42LineBorder_01 extends LineBorder {

    public J42LineBorder_01(final Color color) {
        super(color);
    }

    public J42LineBorder_01(final Color color, final int thickness) {
        super(color, thickness);
    }

    public J42LineBorder_01(final Color color, final int thickness, final boolean roundedCorners) {
        super(color, thickness, roundedCorners);
    }

    private final Color color = Color.GRAY;

    @Override
    public void paintBorder(final Component c, final Graphics g, final int x, final int y, final int width, final int height) {
        super.lineColor = color;
        super.paintBorder(c, g, x, y, width, height);
    }

}
